package com.ruoyi.mdm.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTimeUtils {

    /**
     * 时间戳转固定格式的时间
     * @param timestamp
     * @return
     */
    public static  String convertingTimestampToReadableTimeFormat(long timestamp ){
        Date date = new Date(timestamp);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String formattedDate = sdf.format(date);

        return formattedDate;
    }
}
